package com.wish.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wish.dto.PageRoomStatusDto;
import com.wish.dto.RoomInfoDto;
import com.wish.entity.RoomInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wish.entity.TbRoomInfoResponseVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 闫东浩
 * @since 2021-03-29
 */
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    Page<RoomInfo> getList(@Param(Constants.WRAPPER) QueryWrapper<RoomInfo> wrapper, Page<RoomInfo> page);

   /* void updateRecommended(List<RoomInfo>roomInfoList);*/

    List<TbRoomInfoResponseVo> roomStatusListFs(PageRoomStatusDto pageRoomStatusDto);

    List<TbRoomInfoResponseVo> roomStatusListJz(PageRoomStatusDto pageRoomStatusDto);

    List<TbRoomInfoResponseVo> roomStatusListDetailJz(PageRoomStatusDto pageRoomStatusDto);

}
